﻿@model prjYan.Forum.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}

<div class="register">
    <h3>Đăng ký tài khoản</h3>

    
@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <div class="form-group">
        @Html.LabelFor(m => m.UserName, new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.TextBoxFor(m => m.UserName, new { @class="form-control"})
            @Html.ValidationMessageFor(m => m.UserName)
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.Email, new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.TextBoxFor(m => m.Email, new { @class="form-control"})
            @Html.ValidationMessageFor(m => m.Email)
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.FullName , new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.TextBoxFor(m => m.FullName, new { @class="form-control"})
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.Password, new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.PasswordFor(m => m.Password, new { @class="form-control"})
            @Html.ValidationMessageFor(m => m.Password)
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.ConfirmPassword , new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.PasswordFor(m => m.ConfirmPassword, new { @class="form-control"})
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">Đăng ký</button>
        </div>
    </div>
}

</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
